package dominio;

/**
 * Created by Rafael Simon Garcia on 12/8/13.
 */
public class KirkPatrickCoolingIterator {
    double temperature;
    double alphaFactor;

    public KirkPatrickCoolingIterator(double startTemperature, double alpha){
        temperature = startTemperature;
        alphaFactor = alpha;
    }

    public double NextTemperature(){
        double currentTemp = temperature;
        temperature *= alphaFactor;
        return currentTemp;
    }
}
